package com.zhixin.project.biz.message.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhixin.project.biz.message.mapper.BizMessageMapper;
import com.zhixin.project.biz.message.domain.BizMessage;
import com.zhixin.project.biz.message.service.IBizMessageService;
import com.zhixin.common.utils.text.Convert;

/**
 * messageService业务层处理
 * 
 * @author zhixin
 * @date 2024-05-20
 */
@Service
public class BizMessageServiceImpl implements IBizMessageService 
{
    @Autowired
    private BizMessageMapper bizMessageMapper;

    /**
     * 查询message
     * 
     * @param id message主键
     * @return message
     */
    @Override
    public BizMessage selectBizMessageById(Long id)
    {
        return bizMessageMapper.selectBizMessageById(id);
    }

    /**
     * 查询message列表
     * 
     * @param bizMessage message
     * @return message
     */
    @Override
    public List<BizMessage> selectBizMessageList(BizMessage bizMessage)
    {
        return bizMessageMapper.selectBizMessageList(bizMessage);
    }

    /**
     * 新增message
     * 
     * @param bizMessage message
     * @return 结果
     */
    @Override
    public int insertBizMessage(BizMessage bizMessage)
    {
        return bizMessageMapper.insertBizMessage(bizMessage);
    }

    /**
     * 修改message
     * 
     * @param bizMessage message
     * @return 结果
     */
    @Override
    public int updateBizMessage(BizMessage bizMessage)
    {
        return bizMessageMapper.updateBizMessage(bizMessage);
    }

    /**
     * 批量删除message
     * 
     * @param ids 需要删除的message主键
     * @return 结果
     */
    @Override
    public int deleteBizMessageByIds(String ids)
    {
        return bizMessageMapper.deleteBizMessageByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除message信息
     * 
     * @param id message主键
     * @return 结果
     */
    @Override
    public int deleteBizMessageById(Long id)
    {
        return bizMessageMapper.deleteBizMessageById(id);
    }
}
